package com.mm.dao;

import com.mm.model.Recruit;
import org.apache.ibatis.annotations.*;

@Mapper
public interface RecruitMapper {
    /**
     * 保存招聘
     *
     * @param recruit Recruit
     */
    void insertRecruit(Recruit recruit);

    /**
     * 更新招聘
     *
     * @param recruit Recruit
     */
    void updateRecruitById(Recruit recruit);

    /**
     * 获取招聘
     *
     * @param recruitId 招聘ID
     * @return Recruit
     */
    Recruit getOneRecruitById(Long recruitId);

    /**
     * 通过招聘ID删除招聘
     *
     * @param recruitId 招聘ID
     */
    void deleteRecruitById(Long recruitId);

    /**
     * 保存招聘图片关系
     *
     * @param recruitId      招聘第
     * @param pictureIdArray 图片ID数组
     */
    void insertRecruitPicture(@Param("recruitId") Long recruitId, @Param("pictureIdArray") String[] pictureIdArray);
}